﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CopySniffer.Common;

namespace CopySniffer.Core.ComponentModel
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class TokenizerDescriptorAttribute : Attribute
    {
        public TokenizerDescriptorAttribute(Type tokenizerDescriptorType)
        {
            Guard.IsNotNull(tokenizerDescriptorType, "tokenizerDescriptorType");
            Guard.IsAssignableFrom(typeof(TokenizerDescriptor), tokenizerDescriptorType, "tokenizerDescriptorType");

            TokenizerDescriptorType = tokenizerDescriptorType;
        }

        public Type TokenizerDescriptorType { get; private set; }
    }

}

